package cn.net.xyan.pay.core.service

import cn.net.xyan.pay.core.entity.PatientUser
import cn.net.xyan.pay.core.entity.VendorUserInfo
import org.springframework.web.context.request.NativeWebRequest

/**
 * Created by zarra on 2017/4/18.
 */


interface PatientUserService{
    fun registerVendorUserInfo(vendorUserInfo: VendorUserInfo,username:String):PatientUser
    fun registerVendorUserInfo(vendorUserInfo: VendorUserInfo,patientUser: PatientUser)
    fun unregistereVendorUserInfo(vendorUserInfo: VendorUserInfo,patientUser: PatientUser)
    fun findPatientUser(vendorUserInfo: VendorUserInfo):PatientUser
}

interface VendorUserInfoProvider{
    fun vendor():String
    fun queryVendorUser(vendorNo:String):VendorUserInfo
    fun queryVendorUser(webRequest: NativeWebRequest):VendorUserInfo
}